package com.hdj.chapter15;

/**
 * @author hdj
 * @description
 * @date 2017/12/14.
 */
public class ObserverTest {
    public static void main(String[] args) {
        Subject subject = new MySubject();
        subject.add(new ObserverObject1());
        subject.add(new ObserverObject2());
        subject.operation();
    }
}
